<?php
use \Roboframe\ActiveRecord\Model;
class Permission extends Model {
  static $validates_presence_of = array(
    array('name')
  );
  
  static $validates_uniqueness_of = array(
    array('name')
  );
  
  static $has_many = array(
    array('role_permissions')
   ,array('roles', 'through' => 'role_permissions') 
  );
}